import * as common from './common'

const url = {
	realTimeAll: "/zgb/v1/realTime/all", //获取汇总统计数据
	getStatistic: "/zgb/v1/realTime/getStatistic", //获取统计数据
	getOrganizationList: "/zgb/v1/realTime/getOrganizationList", //获取项目组织列表
	getOrganizationDetail: "/zgb/v1/realTime/getOrganizationDetail", //获取项目组织详情
	rosterListPageByOrganization: "/zgb/v1/realTime/rosterListPageByOrganization", //获取项目组织下人员分页
	getWorktypeList: "/zgb/v1/realTime/getWorktypeList", //获取工种列表
	rosterListPageByWorktype: "/zgb/v1/realTime/rosterListPageByWorktype", //获取工种下人员分页
	identityExpireListPage: "/zgb/v1/realTime/identityExpireListPage", //身份证过期分页查询
	elderListPage: "/zgb/v1/realTime/elderListPage", //大龄人员分页查询
	overAgeListPage: "/zgb/v1/realTime/overAgeListPage", //超龄人员分页查询
	certificateExpireListPage: "/zgb/v1/realTime/certificateExpireListPage", //证书过期分页查询
	noAttendanceRecordForStayListPage: "/zgb/v1/realTime/noAttendanceRecordForStayListPage", //连续未出勤分页查询
	attendanceRecordListPage: "/zgb/v1/realTime/attendanceRecordListPage", //获取考勤流水
	getStationOrWorkType: "/zgb/v1/realTime/getStationOrWorkType", //获取在岗的岗位或工种列表（用于考勤筛选）
}


const realTimeAll = (data) => {
	return common.req(url.realTimeAll, data, 'get');
}
const getStatistic = (data) => {
	return common.req(url.getStatistic, data, 'get');
}
const getOrganizationList = (data) => {
	return common.req(url.getOrganizationList, data, 'get');
}
const getOrganizationDetail = (data) => {
	return common.req(url.getOrganizationDetail, data);
}
const rosterListPageByOrganization = (data) => {
	return common.req(url.rosterListPageByOrganization, data);
}
const getWorktypeList = (data) => {
	return common.req(url.getWorktypeList, data, 'get');
}
const rosterListPageByWorktype = (data) => {
	return common.req(url.rosterListPageByWorktype, data);
}
const identityExpireListPage = (data) => {
	return common.req(url.identityExpireListPage, data);
}
const elderListPage = (data) => {
	return common.req(url.elderListPage, data);
}
const overAgeListPage = (data) => {
	return common.req(url.overAgeListPage, data);
}
const certificateExpireListPage = (data) => {
	return common.req(url.certificateExpireListPage, data);
}
const noAttendanceRecordForStayListPage = (data) => {
	return common.req(url.noAttendanceRecordForStayListPage, data);
}
const attendanceRecordListPage = (data) => {
	return common.req(url.attendanceRecordListPage, data);
}
const getStationOrWorkType = (data) => {
	return common.req(url.getStationOrWorkType, data);
}

export default {
	realTimeAll,
	getStatistic,
	getOrganizationList,
	getOrganizationDetail,
	rosterListPageByOrganization,
	getWorktypeList,
	rosterListPageByWorktype,
	identityExpireListPage,
	elderListPage,
	overAgeListPage,
	certificateExpireListPage,
	noAttendanceRecordForStayListPage,
	attendanceRecordListPage,
	getStationOrWorkType,
}